/**
 * Created by Administrator on 2017/3/2 0002.
 */
var Game={
    create:function () {
        var game={};
        var con=new PIXI.DisplayObjectContainer();
       var arr_page=[];
        for(var i=0;i<5;i++)
        {
            var page=Page1.create();
            con.addChild(page.ui);
            page.ui.y=i*pixiStageH;
            arr_page.push(page);
        }
        var sc=Scroller.create(con,pixiStageW,pixiStageH,'ver','AA',arr_page);

        game.ui=con;
        document.addEventListener('AA_ScrollStart',startHandler);
        document.addEventListener('AA_ScrollComplete',completeHandler);

        function startHandler(e) {
            sc.arrPage[e.detail].Out()
        }
        function completeHandler(e) {
            sc.arrPage[e.detail].In()
        }
        return game;
    }

}